package com.hnhuas.salary.common.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by weirdor on 2019-08-23 20:56
 */
public class IdCardUtils {
    public static String getId(String id){
        Pattern p = Pattern.compile("[0-9]+[X|x]{1}");
        id=id.toLowerCase();
            id = id.substring(id.length()-6);

        return id;
    }
}
